import request from '@/utils/request'

// 查询标注框数统计报列表
export function listReport(query) {
  return request({
    url: '/mark/report/list',
    method: 'get',
    params: query,
  })
}

// 刷新标注框数统计报列表
export function refreshReport(query) {
  return request({
    url: '/mark/report/refresh',
    method: 'get',
    params: query,
  })
}

// 查询标注框数统计报详细
export function getReport(taskId) {
  return request({
    url: '/mark/report/' + taskId,
    method: 'get',
  })
}

// 新增标注框数统计报
export function addReport(data) {
  return request({
    url: '/mark/report',
    method: 'post',
    data: data,
  })
}

// 修改标注框数统计报
export function updateReport(data) {
  return request({
    url: '/mark/report',
    method: 'put',
    data: data,
  })
}

// 删除标注框数统计报
export function delReport(taskId) {
  return request({
    url: '/mark/report/' + taskId,
    method: 'delete',
  })
}

// 导出标注框数统计报
export function exportReport(query) {
  return request({
    url: '/mark/report/export',
    method: 'get',
    params: query,
  })
}
